File Operations
Copy codeThe Code is as follows: Set fso = Wscript. CreateObject ("Scripting. FileSystemObject") 'creates a file system object to process drives, folders, and files.
Set WshShell = Wscript. CreateObject ("Wscript. Shell") 'creates a
This article is recommended by Webmaster (reterry)
Article A friend who wants to learn VBScript, I suggest you go to the official website of Microsoft to check out what is good and humorous. I used to read vbscirpt and read many things, you may not
Memo by:1, VBA to take the number of columns:For example, how many columns are used for the second row: Cells (2, Columns.count). End (xlToLeft). Column: Explanation: Mainly the end method, which is illustrated in VBA: Returns a Range object that
Webmaster (reterry) Recommended this article, want to learn VBScript friend, I suggest to Microsoft's official website to see, where things are very good, vivid humor, I used to learn vbscirpt often go there to see, and a lot of things, not
Most of the time we need admin privileges to run the bat, then we need to combine VBScript to achieve
Method One:
%1 Mshta vbscript:createobject ("Shell.Application"). ShellExecute ("cmd.exe", "/C%~s0::", "", "RunAs", 1) (Window.close)
**************************************** **************************Record problems and solutions to them:
The following problems exist:1. Problems Encountered during programming or debugging2. What you think3. Estimated
Start record date: 17 Feb 2003
When it comes to using the VBS download file is not think of XMLHTTP, hehe, the following is a more classic code:
Ilocal=lcase (WScript.Arguments (1))
Iremote=lcase (wscript.arguments (0))
Set xpost=createobject ("Microsoft.XMLHTTP")
Xpost.open "Get"
When talking about how to use vbs to download files, Do you think of XMLHTTP?
Code :
Ilocal = lcase (wscript. Arguments (1 ))
Iremote = lcase (wscript. Arguments (0 ))
Set xpost = Createobject ("Microsoft. XMLHTTP ")
Xpost. Open "get", iremote,
Copy Code code as follows:
On Error Resume Next
Set Outstreem=wscript.stdout
If (LCase right (wscript.fullname,11) = "Wscript.exe") Then
Set objshell=wscript.createobject ("Wscript.Shell")
Objshell.run ("cmd.exe/k cscript//nologo" CHR (34))
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.